package com.itcm.manage.common;

import lombok.Getter;

@Getter
public enum ResultCodeEnum {

    SUCCESS(true, 200,"操作成功"),
    UNKNOWN_REASON(false, 500, "操作失败"),
    VALIDATE_FAILED(false, 404, "参数检验失败"),
    UNAUTHORIZED(false, 401, "暂未登录或token已经过期"),
    FORBIDDEN(false, 403, "没有相关权限");

    private Boolean success;
    private Integer code;
    private String message;

    private ResultCodeEnum(Boolean success, Integer code, String message) {
        this.success = success;
        this.code = code;
        this.message = message;
    }
}